-- GENERATED SPELL FOR [Xavian Rogue] --


function spell0_3752(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3752', 0, 1)
end

function spell1_3752(pUnit, Event) --@Gift of the Xavian,Self--
pUnit:FullCastSpellOnTarget(6925,pUnit)
pUnit:RegisterEvent('Sorts_3752', 5000, 1)
end

function Sorts_3752(pUnit, Event)
local choix_sorts_3752 = math.random(0, 1)
if choix_sorts_3752 == 0 then
pUnit:RegisterEvent('spell0_3752', 1, 1)
end
if choix_sorts_3752 == 1 then
pUnit:RegisterEvent('spell1_3752', 1, 1)
end
end

function mob3752_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3752', math.random(1500, 3000), 1)
end

function mob3752_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3752_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3752_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3752, 1, 'mob3752_Action')
RegisterUnitEvent(3752, 2, 'mob3752_Leave')
RegisterUnitEvent(3752, 3, 'mob3752_Kill')
RegisterUnitEvent(3752, 4, 'mob3752_Die')
